<script lang="ts" setup>
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import useThemeStore from '@/store/theme.ts'
import {computed} from 'vue'
import {setTheme} from '@/hooks/setTheme.ts'

defineOptions({
	name: 'App'
})
const locale = zhCn
setTheme()
const assemblySize = computed((): string => useThemeStore().assemblySize)
</script>

<template>
	<el-config-provider :locale="locale" :size="assemblySize">
		<router-view/>
	</el-config-provider>
</template>

<style lang="scss" scoped></style>
